package com.richard.room.operator.api.statement.element;

import com.richard.room.operator.api.Entity;
import com.richard.room.operator.api.type.JoinType;

/**
 * @author: Richard
 * @createDate: 2023/8/15 17:48
 * @version: 1.0
 * @description: 关联信息
 */
public class Join {

    /**join类型*/
    public final JoinType type;

    /**join目标表实体信息*/
    public final Entity<?> targetEntity;

    /**on条件*/
    public final Condition on;

    public Join(JoinType type, Entity<?> targetEntity, Condition on) {
        this.type = type;
        this.targetEntity = targetEntity;
        this.on = on;
    }
}
